<?php 
require_once("../resources/commons.php");
require_once("finance_commons.php");
require_once("../data/Expense.php");

SessionManager::getInstance()->checkSession();
checkFinanceAdminRights();
$l_expenseId=base64_decode($_REQUEST["id"]);
$expense=Expense::getFromPrimaryKey($l_expenseId);
$expense->delete();

HTTP::redirect("manage_expenditure.php");
?>